﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using SimpleTool.Server;

namespace SimpleTool
{
    public sealed class DBreserveInfo
    {
        public readonly static string LocalDBName = "database";

        public readonly static List<string> LocalDBcryptKey = ["Serialport", "NongJiaBao"];

        public static string SelectionAddress = "云数据库";

        public static string Selectionkey = "云数据库";

        public static bool IsCloudConnect = true;
    }

    public class MainFuncListItem
    {
        public string Content { set; get; } = string.Empty;
        public FontFamily Family { set; get; } = new FontFamily("YaHei");
        public double Fontsize { set; get; } = 29;

        public string TipHint { set; get; } = string.Empty;

        public FontWeight FontWeight { set; get; } = FontWeights.Medium;

    };

    public class MainSectionModel
    {

        private ObservableCollection<MainFuncListItem> MainFuncTemplateList = [];

        public object? ControlContentStdin;

        public ICommand? FuncSelectedStdin;

        public VerticalAlignment FuncListVerticalAlign = VerticalAlignment.Center;
    }
}
